\hypertarget{classTiXmlDeclaration}{\section{\-Ti\-Xml\-Declaration \-Class \-Reference}
\label{classTiXmlDeclaration}\index{\-Ti\-Xml\-Declaration@{\-Ti\-Xml\-Declaration}}
}


{\ttfamily \#include $<$tinyxml.\-h$>$}

\-Inheritance diagram for \-Ti\-Xml\-Declaration\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classTiXmlDeclaration}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTiXmlDeclaration_aa0484d059bea0ea1acb47c9094382d79}{\hyperlink{classTiXmlDeclaration_aa0484d059bea0ea1acb47c9094382d79}{\-Ti\-Xml\-Declaration} ()}\label{classTiXmlDeclaration_aa0484d059bea0ea1acb47c9094382d79}

\begin{DoxyCompactList}\small\item\em \-Construct an empty declaration. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlDeclaration_acd5556007c3c72209465081de39d9836}{\hyperlink{classTiXmlDeclaration_acd5556007c3c72209465081de39d9836}{\-Ti\-Xml\-Declaration} (const std\-::string \&\-\_\-version, const std\-::string \&\-\_\-encoding, const std\-::string \&\-\_\-standalone)}\label{classTiXmlDeclaration_acd5556007c3c72209465081de39d9836}

\begin{DoxyCompactList}\small\item\em \-Constructor. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlDeclaration_a3b618d1c30c25e4b7a71f31a595ee298}{\hyperlink{classTiXmlDeclaration_a3b618d1c30c25e4b7a71f31a595ee298}{\-Ti\-Xml\-Declaration} (const char $\ast$\-\_\-version, const char $\ast$\-\_\-encoding, const char $\ast$\-\_\-standalone)}\label{classTiXmlDeclaration_a3b618d1c30c25e4b7a71f31a595ee298}

\begin{DoxyCompactList}\small\item\em \-Construct. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlDeclaration_a58ac9042c342f7845c8491da0bb091e8}{{\bfseries \-Ti\-Xml\-Declaration} (const \hyperlink{classTiXmlDeclaration}{\-Ti\-Xml\-Declaration} \&copy)}\label{classTiXmlDeclaration_a58ac9042c342f7845c8491da0bb091e8}

\item 
\hypertarget{classTiXmlDeclaration_a4d6de9b630144621a1d36f31e449bd46}{\hyperlink{classTiXmlDeclaration}{\-Ti\-Xml\-Declaration} \& {\bfseries operator=} (const \hyperlink{classTiXmlDeclaration}{\-Ti\-Xml\-Declaration} \&copy)}\label{classTiXmlDeclaration_a4d6de9b630144621a1d36f31e449bd46}

\item 
\hypertarget{classTiXmlDeclaration_a02ee557b1a4545c3219ed377c103ec76}{const char $\ast$ \hyperlink{classTiXmlDeclaration_a02ee557b1a4545c3219ed377c103ec76}{\-Version} () const }\label{classTiXmlDeclaration_a02ee557b1a4545c3219ed377c103ec76}

\begin{DoxyCompactList}\small\item\em \-Version. \-Will return an empty string if none was found. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlDeclaration_a5d974231f9e9a2f0542f15f3a46cdb76}{const char $\ast$ \hyperlink{classTiXmlDeclaration_a5d974231f9e9a2f0542f15f3a46cdb76}{\-Encoding} () const }\label{classTiXmlDeclaration_a5d974231f9e9a2f0542f15f3a46cdb76}

\begin{DoxyCompactList}\small\item\em \-Encoding. \-Will return an empty string if none was found. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlDeclaration_a9ff06afc033d7ef730ec7c6825b97ad9}{const char $\ast$ \hyperlink{classTiXmlDeclaration_a9ff06afc033d7ef730ec7c6825b97ad9}{\-Standalone} () const }\label{classTiXmlDeclaration_a9ff06afc033d7ef730ec7c6825b97ad9}

\begin{DoxyCompactList}\small\item\em \-Is this a standalone document? \end{DoxyCompactList}\item 
\hypertarget{classTiXmlDeclaration_a7cf459186040141cda7a180a6585ce2e}{virtual \hyperlink{classTiXmlNode}{\-Ti\-Xml\-Node} $\ast$ \hyperlink{classTiXmlDeclaration_a7cf459186040141cda7a180a6585ce2e}{\-Clone} () const }\label{classTiXmlDeclaration_a7cf459186040141cda7a180a6585ce2e}

\begin{DoxyCompactList}\small\item\em \-Creates a copy of this \-Declaration and returns it. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlDeclaration_a347cd8e2b0b5c65058c9f59a106e3d4c}{virtual void {\bfseries \-Print} (\-F\-I\-L\-E $\ast$cfile, int depth, \-T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G $\ast$str) const }\label{classTiXmlDeclaration_a347cd8e2b0b5c65058c9f59a106e3d4c}

\item 
virtual void \hyperlink{classTiXmlDeclaration_abf6303db4bd05b5be554036817ff1cb4}{\-Print} (\-F\-I\-L\-E $\ast$cfile, int depth) const 
\item 
\hypertarget{classTiXmlDeclaration_a12dbb498d45f74fe58cd05dde608a39d}{virtual const char $\ast$ {\bfseries \-Parse} (const char $\ast$p, \-Ti\-Xml\-Parsing\-Data $\ast$data, \-Ti\-Xml\-Encoding encoding)}\label{classTiXmlDeclaration_a12dbb498d45f74fe58cd05dde608a39d}

\item 
\hypertarget{classTiXmlDeclaration_a1e085d3fefd1dbf5ccdbff729931a967}{virtual const \hyperlink{classTiXmlDeclaration}{\-Ti\-Xml\-Declaration} $\ast$ \hyperlink{classTiXmlDeclaration_a1e085d3fefd1dbf5ccdbff729931a967}{\-To\-Declaration} () const }\label{classTiXmlDeclaration_a1e085d3fefd1dbf5ccdbff729931a967}

\begin{DoxyCompactList}\small\item\em \-Cast to a more defined type. \-Will return null not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlDeclaration_a6bd3d1daddcaeb9543c24bfd090969ce}{virtual \hyperlink{classTiXmlDeclaration}{\-Ti\-Xml\-Declaration} $\ast$ \hyperlink{classTiXmlDeclaration_a6bd3d1daddcaeb9543c24bfd090969ce}{\-To\-Declaration} ()}\label{classTiXmlDeclaration_a6bd3d1daddcaeb9543c24bfd090969ce}

\begin{DoxyCompactList}\small\item\em \-Cast to a more defined type. \-Will return null not of the requested type. \end{DoxyCompactList}\item 
virtual bool \hyperlink{classTiXmlDeclaration_a22315a535983b86535cdba3458669e3e}{\-Accept} (\hyperlink{classTiXmlVisitor}{\-Ti\-Xml\-Visitor} $\ast$visitor) const 
\end{DoxyCompactItemize}
\subsection*{\-Protected \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTiXmlDeclaration_a9d08959f935421a593032bd3efb30c38}{void {\bfseries \-Copy\-To} (\hyperlink{classTiXmlDeclaration}{\-Ti\-Xml\-Declaration} $\ast$target) const }\label{classTiXmlDeclaration_a9d08959f935421a593032bd3efb30c38}

\item 
\hypertarget{classTiXmlDeclaration_a72e455200e6b6e265e76bdec4417bb73}{virtual void {\bfseries \-Stream\-In} (std\-::istream $\ast$in, \-T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G $\ast$tag)}\label{classTiXmlDeclaration_a72e455200e6b6e265e76bdec4417bb73}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-In correct \-X\-M\-L the declaration is the first entry in the file. \begin{DoxyVerb}
		<?xml version="1.0" standalone="yes"?>
	\end{DoxyVerb}


\-Tiny\-Xml will happily read or write files without a declaration, however. \-There are 3 possible attributes to the declaration\-: version, encoding, and standalone.

\-Note\-: \-In this version of the code, the attributes are handled as special cases, not generic attributes, simply because there can only be at most 3 and they are always the same. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classTiXmlDeclaration_a22315a535983b86535cdba3458669e3e}{\index{\-Ti\-Xml\-Declaration@{\-Ti\-Xml\-Declaration}!\-Accept@{\-Accept}}
\index{\-Accept@{\-Accept}!TiXmlDeclaration@{\-Ti\-Xml\-Declaration}}
\subsubsection[{\-Accept}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool {\bf \-Ti\-Xml\-Declaration\-::\-Accept} (
\begin{DoxyParamCaption}
\item[{{\bf \-Ti\-Xml\-Visitor} $\ast$}]{visitor}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classTiXmlDeclaration_a22315a535983b86535cdba3458669e3e}
\-Walk the \-X\-M\-L tree visiting this node and all of its children. 

\-Implements \hyperlink{classTiXmlNode_acc0f88b7462c6cb73809d410a4f5bb86}{\-Ti\-Xml\-Node}.

\hypertarget{classTiXmlDeclaration_abf6303db4bd05b5be554036817ff1cb4}{\index{\-Ti\-Xml\-Declaration@{\-Ti\-Xml\-Declaration}!\-Print@{\-Print}}
\index{\-Print@{\-Print}!TiXmlDeclaration@{\-Ti\-Xml\-Declaration}}
\subsubsection[{\-Print}]{\setlength{\rightskip}{0pt plus 5cm}virtual void \-Ti\-Xml\-Declaration\-::\-Print (
\begin{DoxyParamCaption}
\item[{\-F\-I\-L\-E $\ast$}]{cfile, }
\item[{int}]{depth}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}\label{classTiXmlDeclaration_abf6303db4bd05b5be554036817ff1cb4}
\-All \-Tiny\-Xml classes can print themselves to a filestream or the string class (\hyperlink{classTiXmlString}{\-Ti\-Xml\-String} in non-\/\-S\-T\-L mode, std\-::string in \-S\-T\-L mode.) \-Either or both cfile and str can be null.

\-This is a formatted print, and will insert tabs and newlines.

(\-For an unformatted stream, use the $<$$<$ operator.) 

\-Implements \hyperlink{classTiXmlBase_a0de56b3f2ef14c65091a3b916437b512}{\-Ti\-Xml\-Base}.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
include/tinyxml.\-h\end{DoxyCompactItemize}
